package com.yanqu.road.entity.kowloon.enums;

/**
 * npc类型
 */
public enum eKowloonNpcType {

    Hero(1, "好汉"),
    Ruffian(2, "地痞"),

    Boss(3, "boss"),


    ;

    private int value;
    private String name;

    eKowloonNpcType(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public int getValue() {
        return value;
    }

    public static eKowloonNpcType forValue(int value) {
        for (eKowloonNpcType type : eKowloonNpcType.values()) {
            if (type.value == value) {
                return type;
            }
        }
        return null;
    }

}
